<?php
/**
 * Created by PhpStorm.
 * User: 诗觞
 * Date: 2016/5/25
 * Time: 19:43
 */
class Model{
    public $valueArray;
    function  __set($name, $value)
    {
        $this->valueArray[$name]=$value;
    }
    function  __get($name)
    {
        return isset($this->valueArray[$name])?$this->valueArray
    }
    function save()
    {
        $db->insert($table,$this->value);
    }

}

?>